package com.jsh.erp.datasource.mappers;

import com.jsh.erp.datasource.entities.CashBoxRecord;
import com.jsh.erp.datasource.entities.RetailRecordEx;
import com.jsh.erp.datasource.vo.DepotHeadVo4List;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RetailRecordMapperEx {

    List<RetailRecordEx> select(
            @Param("offset") Integer offset,
            @Param("rows") Integer rows);

    Long counts();


    RetailRecordEx getByIdWithStartTime(@Param("id") String id);

    List<Map<String, Object>> selectCashBoxByRecordId(
            @Param("recordId") String recordId,
            @Param("type") Integer type,
            @Param("offset") Integer offset,
            @Param("rows") Integer rows);


    Long countCashBoxByRecordId(@Param("recordId") String recordId,
                                @Param("type") Integer type);

    List<Map<String, Object>> selectGoodsInfoByUserId(@Param("userId") String userId,@Param("startTime") String startTime);
}
